#include <stdio.h>
#include <stdlib.h>

int main(int argc, char const *argv[])
{
    int min = 2;
    int max = 100;

    do
    {
        int divisor = 2;
        do
        {
            if (min % divisor == 0 && min != divisor)
            {
                break;
            }

            if (min == divisor)
            {
                printf("当前数为素数，素数的值为 %d \n", min);
            }
            divisor++;
        } while (divisor <= min);

        min++;
    } while (min <= max);

    return 0;
}
